import type { Metadata } from "next";
import { Geist, Geist_Mono } from "next/font/google";
import "./globals.css";
import Nav from "@components/Nav";
import { ServerProvider } from "@components/ServerContext"


const geistSans = Geist({
  variable: "--font-geist-sans",
  subsets: ["latin"],
});

const geistMono = Geist_Mono({
  variable: "--font-geist-mono",
  subsets: ["latin"],
});

export const metadata: Metadata = {
  title: "Java项目管理",
  description: "在不干扰原本单个服务使用的同时将多个`omniscient` 服务聚合在一起显示",
};

export default function RootLayout({
  children,
}: Readonly<{
  children: React.ReactNode;
}>) {
  return (
    <html lang="en">
      <body
        className={`${geistSans.variable} ${geistMono.variable} antialiased`}
      >
          <ServerProvider>
              <Nav />
              {children}
          </ServerProvider>
      </body>
    </html>
  );
}
